import unittest
from test_package import demo1,demo2

# 通过测试模块加载
l1 = unittest.defaultTestLoader.loadTestsFromModule(demo1)
l2 = unittest.defaultTestLoader.loadTestsFromModule(demo2)

suite = unittest.TestSuite()
suite.addTests([l1,l2])

runner = unittest.TextTestRunner(verbosity=2)
runner.run(suite)